package com.board.form;
//查询角色条件

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
@ApiModel(value = "查询角色参数对象")
public class RoleListForm {
    @ApiModelProperty("角色名")
    private String roleName;//根据角色名查询的条件
    @ApiModelProperty("用户名")
    private String accountName; //根据用户名查询的条件
    @ApiModelProperty("页码")
    @Min(value = 1,message = "页码不能小于1")
    private Integer pageNum;
    @ApiModelProperty("每页条数")
    @Min(value = 1,message = "每页条数不能小于1")
    @Max(value = 100,message = "每页条数不能大于100")
    private Integer pageSize;
}
